package task;

import com.icesoft.faces.context.FileResource;
import java.io.File;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Thorsten Ludwig
 */
@ManagedBean(name="showSheetBean")
@RequestScoped
public class ShowSheetManagedBean {
    
    
    public FileResource getResource(File file) {
        System.out.println(file);
        if (file != null)
            return new FileResource(file);
        else
            return null;
    }
    
}
